package cn.bdqn.xtxg.oof;

public class Master {
	public void food(epetshop epe) {
		epe.eat();
	}
	public void Play(epetshop epe) {
		if(epe instanceof Dog) {
			Dog dog =(Dog) epe;
			 dog .catchingFlyDic();
		} else if(epe instanceof Penguin){
			Penguin	pen =(Penguin) epe;
			pen.swimming();
		} 
	}
}
